<?php

namespace App\Models\Game;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

// 角色摆摊数据表
class RoleStall extends Model
{
    use HasFactory;

    protected $table = "role_stall";
    public $timestamps = false;

    public function __construct(array $attributes = [])
    {
        global $gameArea; if (!$gameArea) $gameArea = 0;
        $this->setConnection('function_'.$gameArea);
        parent::__construct($attributes);
    }
    protected $casts = [
        'sell_item_list'=>'array'
    ];
}
